import { Component } from "react";


class DemoA extends Component{
    constructor(){
        super()
        this.state={
            flag:false
        }
    }
    checkedall(e){
        this.setState(_=>(
            {
                flag:e.target.checked
            }
        ))
    }
    render(){
        return (
            <div>
                <input type="checkbox" onChange={(e)=>{this.checkedall(e)}}  name=""  id="" />
            </div>
        )
    }
}

export default DemoA